package com.api.shopapi.service.impl;


import com.api.shopapi.entity.VerificationCodeLimit;
import com.api.shopapi.mapper.VerificationCodeLimitMapper;
import com.api.shopapi.service.VerificationCodeLimitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("VerificationCodeLimitServiceImplOne")
public class VerificationCodeLimitServiceImpl implements VerificationCodeLimitService {
    @Autowired
    private VerificationCodeLimitMapper verificationCodeLimitMapper;

    @Override
    public int insert(VerificationCodeLimit verificationCodeLimit) {
        return verificationCodeLimitMapper.insert(verificationCodeLimit);
    }

    @Override
    public int delete(String verificationCodeLimitCode) {
        return verificationCodeLimitMapper.delete(verificationCodeLimitCode);
    }

    @Override
    public int update(VerificationCodeLimit verificationCodeLimit) {
        return verificationCodeLimitMapper.update(verificationCodeLimit);
    }

    @Override
    public List<VerificationCodeLimit> getList() {
        return verificationCodeLimitMapper.getList();
    }

    @Override
    public VerificationCodeLimit getByVerificationCodeLimitCode(String verificationCodeLimitCode) {
        return verificationCodeLimitMapper.getByVerificationCodeLimitCode(verificationCodeLimitCode);
    }

    @Override
    public VerificationCodeLimit getByIP(String iP){
        return verificationCodeLimitMapper.getByIP(iP);
    }


}
